home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / MBLIB10.ZIP;1 / CPPEXAMP.ZIP / NETHDR.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-02  |  1010 b   |  43 lines

  1. #ifndef __NETHDR_HPP
  2.  
  3. #define __NETHDR_HPP
  4.  
  5. #include "mb_lib.h"
  6.  
  7. class NetHdr
  8. {
  9.     private:
  10.  
  11.     protected:
  12.  
  13.         NET_RECORD  hdr;
  14.  
  15.     public:
  16.  
  17.         //    Opus (*.msg) message attributes
  18.  
  19.         enum {    Private = 0x0001,    Crash = 0x0002,        Received = 0x0004,
  20.                 Sent = 0x0008,         File = 0x0010,         Transit = 0x0020,
  21.                 Orphan = 0x0040,     Kill = 0x0080,         Local = 0x0100,
  22.                 Hold = 0x0200,         Unused = 0x0400,     Request = 0x0800,
  23.                 Receipt = 0x1000,     IsReceipt = 0x2000, Audit = 0x4000,
  24.                 UpdateReq = 0x8000 };
  25.  
  26.         //    Constructors and desctrutor definition
  27.  
  28.                 NetHdr (void) { net_hdr_clear (&hdr); };
  29.         virtual    ~NetHdr (void) {};
  30.  
  31.         //    Methods
  32.  
  33.         void From (char *name, int zone, int net, int node, int point);
  34.         void To (char *name, int zone, int net, int node, int point);
  35.         void From (char *name, int net, int node);
  36.         void To (char *name, int net, int node);
  37.         void Subject (char *subject);
  38.         void SetAttribute (unsigned int attr);
  39.         void UnsetAttribute (unsigned int attr);
  40. };
  41.  
  42. #endif
  43.